package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.HcConsumablesInfo;
import com.ruoyi.system.domain.SupRes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HcConsumablesInfoMapper;
import com.ruoyi.system.service.IHcConsumablesInfoService;

/**
 * 医院耗材管理系统Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-24
 */
@Service
public class HcConsumablesInfoServiceImpl implements IHcConsumablesInfoService 
{
    @Autowired
    private HcConsumablesInfoMapper hcConsumablesInfoMapper;

    /**
     * 查询医院耗材管理系统
     * 
     * @param id 医院耗材管理系统主键
     * @return 医院耗材管理系统
     */
    @Override
    public HcConsumablesInfo selectHcConsumablesInfoById(Long id)
    {
        return hcConsumablesInfoMapper.selectHcConsumablesInfoById(id);
    }

    /**
     * 查询医院耗材管理系统列表
     * 
     * @param hcConsumablesInfo 医院耗材管理系统
     * @return 医院耗材管理系统
     */
    @Override
    public List<HcConsumablesInfo> selectHcConsumablesInfoList(HcConsumablesInfo hcConsumablesInfo)
    {
        return hcConsumablesInfoMapper.selectHcConsumablesInfoList(hcConsumablesInfo);
    }

    /**
     * 新增医院耗材管理系统
     * 
     * @param hcConsumablesInfo 医院耗材管理系统
     * @return 结果
     */
    @Override
    public int insertHcConsumablesInfo(HcConsumablesInfo hcConsumablesInfo)
    {
        return hcConsumablesInfoMapper.insertHcConsumablesInfo(hcConsumablesInfo);
    }

    /**
     * 修改医院耗材管理系统
     * 
     * @param hcConsumablesInfo 医院耗材管理系统
     * @return 结果
     */
    @Override
    public int updateHcConsumablesInfo(HcConsumablesInfo hcConsumablesInfo)
    {
        return hcConsumablesInfoMapper.updateHcConsumablesInfo(hcConsumablesInfo);
    }

    /**
     * 批量删除医院耗材管理系统
     * 
     * @param ids 需要删除的医院耗材管理系统主键
     * @return 结果
     */
    @Override
    public int deleteHcConsumablesInfoByIds(Long[] ids)
    {
        return hcConsumablesInfoMapper.deleteHcConsumablesInfoByIds(ids);
    }

    /**
     * 删除医院耗材管理系统信息
     * 
     * @param id 医院耗材管理系统主键
     * @return 结果
     */
    @Override
    public int deleteHcConsumablesInfoById(Long id)
    {
        return hcConsumablesInfoMapper.deleteHcConsumablesInfoById(id);
    }
    @Override
    public List<HcConsumablesInfo> QueryWarnningInfo(){
        return  hcConsumablesInfoMapper.QueryWarnningInfo();
    }
    @Override
    public List<HcConsumablesInfo>QueryTimeLimit(){
        return  hcConsumablesInfoMapper.QueryTimeLimit();
    }
    @Override
    public List<SupRes> QuerySupplierInfo(){
        return  hcConsumablesInfoMapper.QuerySupplierInfo();
    }

}
